package com.spsoft.vatoutinv.service.vmsfulloutinvoice.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spsoft.vatoutinv.entity.vmsfulloutinvoice.VmsFullOutInvoiceTdyw;
import com.spsoft.vatoutinv.mapper.VmsFullOutInvoiceTdywMapper;
import com.spsoft.vatoutinv.service.vmsfulloutinvoice.VmsFullOutInvoiceTdywService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 数电发票特定业务表 服务实现类
 * </p>
 *
 * @author chenxudong
 * @since 2024-02-04
 */
@Service
public class VmsFullOutInvoiceTdywServiceImpl extends ServiceImpl<VmsFullOutInvoiceTdywMapper, VmsFullOutInvoiceTdyw> implements VmsFullOutInvoiceTdywService {

    @Override
    public List<VmsFullOutInvoiceTdyw> getInfoByFoidid(Long foidid) {
        LambdaQueryWrapper<VmsFullOutInvoiceTdyw> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(VmsFullOutInvoiceTdyw::getFoidid, foidid);
        wrapper.orderByAsc(VmsFullOutInvoiceTdyw::getTdywId);
        return list(wrapper);
    }
}